﻿using System;
namespace Maticsoft.Model
{
	/// <summary>
	/// Orders:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Orders
	{
		public Orders()
		{}
		#region Model
		private int _orderid;
		private int? _userid;
		private decimal? _total;
		private int? _oitemnum;
		private string _name;
		private int? _sex;
		private string _phone;
		private string _mobile;
		private int? _province;
		private int? _city;
		private string _provincename;
		private string _cityname;
		private string _address;
		private string _postcode;
		private DateTime? _createtime;
		private DateTime? _updatetime;
		private int? _isactive;
		private int? _status;
		private DateTime? _paytime;
		private int? _paywayid;
		private int? _deliverywayid;
		private decimal? _deliveryfee=0M;
		private decimal? _couponfee;
		private decimal? _productprice;
		private int? _deliverytimeid=0;
		private string _trade_no;
		/// <summary>
		/// 
		/// </summary>
		public int OrderId
		{
			set{ _orderid=value;}
			get{return _orderid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserId
		{
			set{ _userid=value;}
			get{return _userid;}
		}
		/// <summary>
		/// 订单总价(订单总价=商品总价+邮寄费用-优惠费用)
		/// </summary>
		public decimal? Total
		{
			set{ _total=value;}
			get{return _total;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? OitemNum
		{
			set{ _oitemnum=value;}
			get{return _oitemnum;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Name
		{
			set{ _name=value;}
			get{return _name;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? sex
		{
			set{ _sex=value;}
			get{return _sex;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Phone
		{
			set{ _phone=value;}
			get{return _phone;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Mobile
		{
			set{ _mobile=value;}
			get{return _mobile;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? Province
		{
			set{ _province=value;}
			get{return _province;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? City
		{
			set{ _city=value;}
			get{return _city;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ProvinceName
		{
			set{ _provincename=value;}
			get{return _provincename;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CityName
		{
			set{ _cityname=value;}
			get{return _cityname;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Address
		{
			set{ _address=value;}
			get{return _address;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string PostCode
		{
			set{ _postcode=value;}
			get{return _postcode;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? CreateTime
		{
			set{ _createtime=value;}
			get{return _createtime;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? UpdateTime
		{
			set{ _updatetime=value;}
			get{return _updatetime;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? IsActive
		{
			set{ _isactive=value;}
			get{return _isactive;}
		}
		/// <summary>
		/// 订单状态
		/// </summary>
		public int? Status
		{
			set{ _status=value;}
			get{return _status;}
		}
		/// <summary>
		/// 支付时间
		/// </summary>
		public DateTime? PayTime
		{
			set{ _paytime=value;}
			get{return _paytime;}
		}
		/// <summary>
		/// 支付方式(0未知1在线支付2货到付款3邮局付款4)
		/// </summary>
		public int? PayWayId
		{
			set{ _paywayid=value;}
			get{return _paywayid;}
		}
		/// <summary>
		/// 配送方式
		/// </summary>
		public int? DeliveryWayId
		{
			set{ _deliverywayid=value;}
			get{return _deliverywayid;}
		}
		/// <summary>
		/// 邮寄费用
		/// </summary>
		public decimal? DeliveryFee
		{
			set{ _deliveryfee=value;}
			get{return _deliveryfee;}
		}
		/// <summary>
		/// 
		/// </summary>
		public decimal? CouponFee
		{
			set{ _couponfee=value;}
			get{return _couponfee;}
		}
		/// <summary>
		/// 商品总价
		/// </summary>
		public decimal? ProductPrice
		{
			set{ _productprice=value;}
			get{return _productprice;}
		}
		/// <summary>
		/// 送货时间
		/// </summary>
		public int? DeliveryTimeId
		{
			set{ _deliverytimeid=value;}
			get{return _deliverytimeid;}
		}
		/// <summary>
		/// 支付宝交易号
		/// </summary>
		public string trade_no
		{
			set{ _trade_no=value;}
			get{return _trade_no;}
		}
		#endregion Model

	}
}

